<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Os1: /home/alejandro/Desarrollo eclipse/os1/Thirdparty/g2o/g2o/stuff/string_tools.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Os1
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">OrbSlam2 documentado y modificado</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,'Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('string__tools_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">string_tools.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="string__tools_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// g2o - General Graph Optimization</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions are</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// met:</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// * Redistributions of source code must retain the above copyright notice,</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//   this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//   notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//   documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#ifndef G2O_STRING_TOOLS_H</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#define G2O_STRING_TOOLS_H</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="macros_8h.html">macros.h</a>&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceg2o.html">g2o</a> {</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// @{</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160; std::string <a class="code" href="group__utils.html#ga5c3812993227cfbec772c7477928c1fc">trim</a>(<span class="keyword">const</span> std::string&amp; s);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; std::string <a class="code" href="group__utils.html#ga1e3dc946d073cacb02cf458d67471ad5">trimLeft</a>(<span class="keyword">const</span> std::string&amp; s);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; std::string <a class="code" href="group__utils.html#ga3e3eb912f0f9e272e81127f1653edf38">trimRight</a>(<span class="keyword">const</span> std::string&amp; s);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; std::string <a class="code" href="group__utils.html#ga98a43706466c9618576a0f23e9021457">strToLower</a>(<span class="keyword">const</span> std::string&amp; s);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; std::string <a class="code" href="group__utils.html#gac5545be3a953651c68fe8c81313f2564">strToUpper</a>(<span class="keyword">const</span> std::string&amp; s);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> OutputIterator&gt;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="group__utils.html#gae501003a8f6b60afb846857fdb82174d">   76</a></span>&#160;OutputIterator <a class="code" href="group__utils.html#gae501003a8f6b60afb846857fdb82174d">readInts</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str, OutputIterator out)</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;{</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="keywordtype">char</span>* cl  = (<span class="keywordtype">char</span>*)str;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="keywordtype">char</span>* cle = cl;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <span class="keywordflow">while</span> (1) {</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">int</span> <span class="keywordtype">id</span> = strtol(cl, &amp;cle, 10);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">if</span> (cl == cle)</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      <span class="keywordflow">break</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    *out++ = id;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    cl = cle;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  }</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;  <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;}</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> OutputIterator&gt;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="group__utils.html#ga88353c6cfc2e519df07814ca577e71ec">   95</a></span>&#160;OutputIterator <a class="code" href="group__utils.html#ga88353c6cfc2e519df07814ca577e71ec">readFloats</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str, OutputIterator out)</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  <span class="keywordtype">char</span>* cl  = (<span class="keywordtype">char</span>*)str;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  <span class="keywordtype">char</span>* cle = cl;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="keywordflow">while</span> (1) {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">double</span> val = strtod(cl, &amp;cle);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keywordflow">if</span> (cl == cle)</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;      <span class="keywordflow">break</span>;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    *out++ = val;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    cl = cle;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;  }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordflow">return</span> out;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; std::string <a class="code" href="group__utils.html#ga4326834faf460aaec85ba8c4cb1a3d4e">formatString</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* fmt, ...) <a class="code" href="macros_8h.html#a053aa988e1d5f059ce90eb7c185e0058">G2O_ATTRIBUTE_FORMAT12</a>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; <span class="keywordtype">int</span> <a class="code" href="group__utils.html#gad7948072d9d6c2c6bfe25925e58529e8">strPrintf</a>(std::string&amp; str, <span class="keyword">const</span> <span class="keywordtype">char</span>* fmt, ...) <a class="code" href="macros_8h.html#af446712aac1f524edbeff60bc0078e97">G2O_ATTRIBUTE_FORMAT23</a>;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="group__utils.html#ga599c46f6984e9a2147fac39324e9fadc">  124</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__utils.html#ga599c46f6984e9a2147fac39324e9fadc">convertString</a>(<span class="keyword">const</span> std::string&amp; s, T&amp; x, <span class="keywordtype">bool</span> failIfLeftoverChars = <span class="keyword">true</span>)</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;{</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  std::istringstream i(s);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="keywordtype">char</span> c;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="keywordflow">if</span> (!(i &gt;&gt; x) || (failIfLeftoverChars &amp;&amp; i.get(c)))</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="group__utils.html#ga9dac39a213d269b8d68fb698bf82873a">  138</a></span>&#160;T <a class="code" href="group__utils.html#ga9dac39a213d269b8d68fb698bf82873a">stringToType</a>(<span class="keyword">const</span> std::string&amp; s, <span class="keywordtype">bool</span> failIfLeftoverChars = <span class="keyword">true</span>)</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;{</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  T x;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  <a class="code" href="group__utils.html#ga599c46f6984e9a2147fac39324e9fadc">convertString</a>(s, x, failIfLeftoverChars);</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;  <span class="keywordflow">return</span> x;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="group__utils.html#ga6b9ad55d182238a3b29c755e5a91227c">strStartsWith</a>(<span class="keyword">const</span> std::string &amp; str, <span class="keyword">const</span> std::string&amp; substr);</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="group__utils.html#ga72be58353c64ef6f14ae70d43f75c892">strEndsWith</a>(<span class="keyword">const</span> std::string &amp; str, <span class="keyword">const</span> std::string&amp; substr);</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160; std::string <a class="code" href="group__utils.html#ga198d4ceebba5de14cd7e40be2a06c277">strExpandFilename</a>(<span class="keyword">const</span> std::string&amp; filename);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; std::vector&lt;std::string&gt; <a class="code" href="group__utils.html#gab7609f349d1d97a8164162143589762c">strSplit</a>(<span class="keyword">const</span> std::string&amp; s, <span class="keyword">const</span> std::string&amp; delim);</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; <span class="keywordtype">int</span> <a class="code" href="group__utils.html#ga07aa1d8e5a4e25d0170010df66908611">readLine</a>(std::istream&amp; is, std::stringstream&amp; currentLine);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">// @}</span></div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;} <span class="comment">// end namespace</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="group__utils_html_ga88353c6cfc2e519df07814ca577e71ec"><div class="ttname"><a href="group__utils.html#ga88353c6cfc2e519df07814ca577e71ec">g2o::readFloats</a></div><div class="ttdeci">OutputIterator readFloats(const char *str, OutputIterator out)</div><div class="ttdoc">read float values (seperated by spaces) from a string and store them in the given OutputIterator...</div><div class="ttdef"><b>Definition:</b> string_tools.h:95</div></div>
<div class="ttc" id="group__utils_html_ga07aa1d8e5a4e25d0170010df66908611"><div class="ttname"><a href="group__utils.html#ga07aa1d8e5a4e25d0170010df66908611">g2o::readLine</a></div><div class="ttdeci">int readLine(std::istream &amp;is, std::stringstream &amp;currentLine)</div><div class="ttdoc">read a line from is into currentLine. </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:172</div></div>
<div class="ttc" id="group__utils_html_ga9dac39a213d269b8d68fb698bf82873a"><div class="ttname"><a href="group__utils.html#ga9dac39a213d269b8d68fb698bf82873a">g2o::stringToType</a></div><div class="ttdeci">T stringToType(const std::string &amp;s, bool failIfLeftoverChars=true)</div><div class="ttdoc">convert a string into an other type. </div><div class="ttdef"><b>Definition:</b> string_tools.h:138</div></div>
<div class="ttc" id="group__utils_html_gab7609f349d1d97a8164162143589762c"><div class="ttname"><a href="group__utils.html#gab7609f349d1d97a8164162143589762c">g2o::strSplit</a></div><div class="ttdeci">std::vector&lt; std::string &gt; strSplit(const std::string &amp;str, const std::string &amp;delimiters)</div><div class="ttdoc">split a string into token based on the characters given in delim </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:143</div></div>
<div class="ttc" id="macros_8h_html_a053aa988e1d5f059ce90eb7c185e0058"><div class="ttname"><a href="macros_8h.html#a053aa988e1d5f059ce90eb7c185e0058">G2O_ATTRIBUTE_FORMAT12</a></div><div class="ttdeci">#define G2O_ATTRIBUTE_FORMAT12</div><div class="ttdef"><b>Definition:</b> macros.h:99</div></div>
<div class="ttc" id="group__utils_html_ga5c3812993227cfbec772c7477928c1fc"><div class="ttname"><a href="group__utils.html#ga5c3812993227cfbec772c7477928c1fc">g2o::trim</a></div><div class="ttdeci">std::string trim(const std::string &amp;s)</div><div class="ttdoc">remove whitespaces from the start/end of a string </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:48</div></div>
<div class="ttc" id="group__utils_html_ga1e3dc946d073cacb02cf458d67471ad5"><div class="ttname"><a href="group__utils.html#ga1e3dc946d073cacb02cf458d67471ad5">g2o::trimLeft</a></div><div class="ttdeci">std::string trimLeft(const std::string &amp;s)</div><div class="ttdoc">remove whitespaces from the left side of the string </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:59</div></div>
<div class="ttc" id="macros_8h_html"><div class="ttname"><a href="macros_8h.html">macros.h</a></div></div>
<div class="ttc" id="group__utils_html_ga4326834faf460aaec85ba8c4cb1a3d4e"><div class="ttname"><a href="group__utils.html#ga4326834faf460aaec85ba8c4cb1a3d4e">g2o::formatString</a></div><div class="ttdeci">std::string formatString(const char *fmt,...)</div><div class="ttdoc">format a string and return a std::string. </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:95</div></div>
<div class="ttc" id="namespaceg2o_html"><div class="ttname"><a href="namespaceg2o.html">g2o</a></div><div class="ttdef"><b>Definition:</b> base_binary_edge.h:37</div></div>
<div class="ttc" id="group__utils_html_ga198d4ceebba5de14cd7e40be2a06c277"><div class="ttname"><a href="group__utils.html#ga198d4ceebba5de14cd7e40be2a06c277">g2o::strExpandFilename</a></div><div class="ttdeci">std::string strExpandFilename(const std::string &amp;filename)</div><div class="ttdoc">expand the given filename like a posix shell, e.g., ~ $CARMEN_HOME and other will get expanded...</div><div class="ttdef"><b>Definition:</b> string_tools.cpp:124</div></div>
<div class="ttc" id="group__utils_html_ga3e3eb912f0f9e272e81127f1653edf38"><div class="ttname"><a href="group__utils.html#ga3e3eb912f0f9e272e81127f1653edf38">g2o::trimRight</a></div><div class="ttdeci">std::string trimRight(const std::string &amp;s)</div><div class="ttdoc">remove whitespaced from the right side of the string </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:70</div></div>
<div class="ttc" id="group__utils_html_ga98a43706466c9618576a0f23e9021457"><div class="ttname"><a href="group__utils.html#ga98a43706466c9618576a0f23e9021457">g2o::strToLower</a></div><div class="ttdeci">std::string strToLower(const std::string &amp;s)</div><div class="ttdoc">convert the string to lower case </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:81</div></div>
<div class="ttc" id="group__utils_html_gae501003a8f6b60afb846857fdb82174d"><div class="ttname"><a href="group__utils.html#gae501003a8f6b60afb846857fdb82174d">g2o::readInts</a></div><div class="ttdeci">OutputIterator readInts(const char *str, OutputIterator out)</div><div class="ttdoc">read integer values (seperated by spaces) from a string and store them in the given OutputIterator...</div><div class="ttdef"><b>Definition:</b> string_tools.h:76</div></div>
<div class="ttc" id="group__utils_html_ga599c46f6984e9a2147fac39324e9fadc"><div class="ttname"><a href="group__utils.html#ga599c46f6984e9a2147fac39324e9fadc">g2o::convertString</a></div><div class="ttdeci">bool convertString(const std::string &amp;s, T &amp;x, bool failIfLeftoverChars=true)</div><div class="ttdoc">convert a string into an other type. </div><div class="ttdef"><b>Definition:</b> string_tools.h:124</div></div>
<div class="ttc" id="group__utils_html_gad7948072d9d6c2c6bfe25925e58529e8"><div class="ttname"><a href="group__utils.html#gad7948072d9d6c2c6bfe25925e58529e8">g2o::strPrintf</a></div><div class="ttdeci">int strPrintf(std::string &amp;str, const char *fmt,...)</div><div class="ttdoc">replacement function for sprintf which fills a std::string instead of a char* </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:112</div></div>
<div class="ttc" id="group__utils_html_ga6b9ad55d182238a3b29c755e5a91227c"><div class="ttname"><a href="group__utils.html#ga6b9ad55d182238a3b29c755e5a91227c">g2o::strStartsWith</a></div><div class="ttdeci">bool strStartsWith(const std::string &amp;s, const std::string &amp;start)</div><div class="ttdoc">return true, if str starts with substr </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:158</div></div>
<div class="ttc" id="macros_8h_html_af446712aac1f524edbeff60bc0078e97"><div class="ttname"><a href="macros_8h.html#af446712aac1f524edbeff60bc0078e97">G2O_ATTRIBUTE_FORMAT23</a></div><div class="ttdeci">#define G2O_ATTRIBUTE_FORMAT23</div><div class="ttdef"><b>Definition:</b> macros.h:100</div></div>
<div class="ttc" id="group__utils_html_ga72be58353c64ef6f14ae70d43f75c892"><div class="ttname"><a href="group__utils.html#ga72be58353c64ef6f14ae70d43f75c892">g2o::strEndsWith</a></div><div class="ttdeci">bool strEndsWith(const std::string &amp;s, const std::string &amp;end)</div><div class="ttdoc">return true, if str ends with substr </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:165</div></div>
<div class="ttc" id="group__utils_html_gac5545be3a953651c68fe8c81313f2564"><div class="ttname"><a href="group__utils.html#gac5545be3a953651c68fe8c81313f2564">g2o::strToUpper</a></div><div class="ttdeci">std::string strToUpper(const std::string &amp;s)</div><div class="ttdoc">convert a string to upper case </div><div class="ttdef"><b>Definition:</b> string_tools.cpp:88</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_08235c883c2d11e586a63e6645937db5.html">Thirdparty</a></li><li class="navelem"><a class="el" href="dir_6238d635334f7e809f450ee18181fd21.html">g2o</a></li><li class="navelem"><a class="el" href="dir_62a53d30c17c36057e41412a1a4f77b8.html">g2o</a></li><li class="navelem"><a class="el" href="dir_8060ee540022a2c52e71c5c2c8062ae1.html">stuff</a></li><li class="navelem"><a class="el" href="string__tools_8h.html">string_tools.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
